// 请求配置
export interface Request{
    //是否在加载页面时请求数据
    createdIsNeed: boolean,
    url: string,
    fullUrl?: string
    //响应预处理
    responseProcessing?: (data: any) => void
}
// 查询参数配置
export type Query<T> = {
    [key in keyof T]?: T[key]
}

// 主要数据
export interface State<T, D> extends _Paging{
    queryForm: T,
    dataList: D[],
    // dataListSelections?: []
}

export interface _Paging{
    page?: number
    limit?: number
    total?: number
    pageSizes?: number[]
}

export type Mode = "add" | "update" | "search" | "resetting" | "del" | "info"

export type FormData<T> = { [key in keyof T]?: T[key] }
